var express = require('express');
var router = express.Router();
// var User = require('../model/user.model');



var dataCtrl = require('../controlls/cate.controlls');

router.post('/data',dataCtrl.create);
router.put('/data/:id',dataCtrl.update);
router.get('/list/:type',dataCtrl.list);
router.delete('/data/:id',dataCtrl.remove);


module.exports = router;
